
<%@ include file="./header.jsp"%>
<link rel="stylesheet"
	href="<c:url value="/resources/css/trustRegionDetail.css" />"
	type="text/css">
<script src="./resources/js/trustRegionDetail.js" type="text/javascript"></script>
<script src="./resources/js/easyResponsiveTabs.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#trustregion').addClass('active');
	});
</script>
<h2 id="heading">Trust Region Detail</h2>

<div class="container">
	<div id="TabDetailRegion" class="holePage">
		<ul class="resp-tabs-list">
			<li>Detail</li>
			<li>Trust District</li>
		</ul>
		<div class="resp-tabs-container">
			<div class="tab1">
				<div class="content">
					<table class="table">
						<tr>
							<td>Nation/Country <span style="color: red;"> *</span></td>
							<td><select name="nation/country" id="countryName">
									<c:if test="${!empty listCountry }">
										<c:forEach items="${listCountry}" var="current">
											<c:choose>
												<c:when
													test="${(!empty trInfo) and current.getCountryName() == trInfo.getCountryName()}">
													<option selected="selected"><c:out
															value="${current.getCountryName()}" /></option>
												</c:when>
												<c:otherwise>
													<option><c:out value="${current.getCountryName()}" /></option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
									</c:if>
							</select></td>
						</tr>
						<tr>
							<td>Trust Region Name <span style="color: red;"> *</span></td>
							<td><input type="text" name="regionName" id="regionName"
								value='<c:if test="${!empty trInfo }"> ${trInfo.getName()}</c:if>'>
								<div id="nameError" style="color: red;"></div></td>
						</tr>
						<tr>
							<td>Description</td>
							<td><textarea cols="10" rows="6" id="description"><c:if
										test="${!empty trInfo }"> ${trInfo.getDescription()}</c:if></textarea></td>
						</tr>
					</table>
					<div id="msg"></div>
				</div>
				<div class="control">
					<button class="btn btn-success" id="btnSave">Save</button>
					<button class="btn" id="btnBack">Back</button>
				</div>
				<c:if test="${!empty inActiveBtn }">
					<button class="btn btn-warning" id="btnInactive">Inactive</button>
				</c:if>
			</div>
			<div>District</div>
		</div>
	</div>
</div>
<%@ include file="./footer.jsp"%>